package com.cje.proxyInvocationHandler.staticProxy;

/**
 * @Auther: ChenJinEn
 * @Date: 2020/8/8 16:59
 * @Description: //TODO
 */
public class MiddleMan {
    private Rent rent;

    public void setRent(Rent rent) {
        this.rent = rent;
    }

    public MiddleMan() {
    }

    public MiddleMan(Rent rent) {
        this.rent = rent;
    }

    public void rentHouse(){
        System.out.println("收中介费");
        System.out.println("签合同");
        rent.rentHouse();
    }
}
